<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>ReflectionClass 类</title>
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-base.css" />
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-medium.css" />

 </head>
 <body class="docs"><div class="navbar navbar-fixed-top">
  <div class="navbar-inner clearfix">
    <ul class="nav" style="width: 100%">
      <li style="float: left;"><a href="reflection.getmodifiernames.html">« Reflection::getModifierNames</a></li>
      <li style="float: right;"><a href="reflectionclass.construct.html">ReflectionClass::__construct »</a></li>
    </ul>
  </div>
</div>
<div id="breadcrumbs" class="clearfix">
  <ul class="breadcrumbs-container">
    <li><a href="index.html">PHP Manual</a></li>
    <li><a href="book.reflection.html">反射</a></li>
    <li>ReflectionClass 类</li>
  </ul>
</div>
<div id="layout">
  <div id="layout-content"><div id="class.reflectionclass" class="reference">

 <h1 class="title">ReflectionClass 类</h1>
 

 <div class="partintro"><p class="verinfo">(PHP 5, PHP 7, PHP 8)</p>


  <div class="section" id="reflectionclass.intro">
   <h2 class="title">简介</h2>
   <p class="para">
    <span class="classname"><strong class="classname">ReflectionClass</strong></span> 类报告了一个类的有关信息。
   </p>
  </div>


  <div class="section" id="reflectionclass.synopsis">
   <h2 class="title">类摘要</h2>


   <div class="classsynopsis">
    <div class="ooclass">
     
    </div>

    <div class="classsynopsisinfo">
     <span class="ooclass">
      <span class="modifier">class</span> <strong class="classname">ReflectionClass</strong>
     </span>

     <span class="oointerface"><span class="modifier">implements</span> 
       <a href="class.reflector.html" class="interfacename">Reflector</a></span> {</div>

    <div class="classsynopsisinfo classsynopsisinfo_comment">/* 常量 */</div>
    <div class="fieldsynopsis">
     <span class="modifier">public</span>
     <span class="modifier">const</span>
     <span class="type">int</span>
      <var class="fieldsynopsis_varname"><a href="class.reflectionclass.html#reflectionclass.constants.is-implicit-abstract"><var class="varname">IS_IMPLICIT_ABSTRACT</var></a></var>;</div>

    <div class="fieldsynopsis"><span class="modifier">public</span>
     <span class="modifier">const</span>
     <span class="type">int</span>
      <var class="fieldsynopsis_varname"><a href="class.reflectionclass.html#reflectionclass.constants.is-explicit-abstract"><var class="varname">IS_EXPLICIT_ABSTRACT</var></a></var>;</div>

    <div class="fieldsynopsis"><span class="modifier">public</span>
     <span class="modifier">const</span>
     <span class="type">int</span>
      <var class="fieldsynopsis_varname"><a href="class.reflectionclass.html#reflectionclass.constants.is-final"><var class="varname">IS_FINAL</var></a></var>;</div>

    <div class="fieldsynopsis"><span class="modifier">public</span>
     <span class="modifier">const</span>
     <span class="type">int</span>
      <var class="fieldsynopsis_varname"><a href="class.reflectionclass.html#reflectionclass.constants.is-readonly"><var class="varname">IS_READONLY</var></a></var>;</div>


    <div class="classsynopsisinfo classsynopsisinfo_comment">/* 属性 */</div>
    <div class="fieldsynopsis"><span class="modifier">public</span>
     <span class="type">string</span>
      <var class="varname"><a href="class.reflectionclass.html#reflectionclass.props.name">$<var class="varname">name</var></a></var>;</div>


    <div class="classsynopsisinfo classsynopsisinfo_comment">/* 方法 */</div>
    <div class="constructorsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><a href="reflectionclass.construct.html" class="methodname">__construct</a></span>(<span class="methodparam"><span class="type"><span class="type">object</span>|<span class="type">string</span></span> <code class="parameter">$objectOrClass</code></span>)</div>

    <div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="modifier">static</span> <span class="methodname"><a href="reflectionclass.export.html" class="methodname">export</a></span>(<span class="methodparam"><span class="type"><a href="language.types.declarations.html#language.types.declarations.mixed" class="type mixed">mixed</a></span> <code class="parameter">$argument</code></span>, <span class="methodparam"><span class="type">bool</span> <code class="parameter">$return</code><span class="initializer"> = <strong><code>false</code></strong></span></span>): <span class="type">string</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="reflectionclass.getattributes.html" class="methodname">getAttributes</a></span>(<span class="methodparam"><span class="type">?</span><span class="type"><span class="type">string</span><span class="type"></span></span> <code class="parameter">$name</code><span class="initializer"> = <strong><code>null</code></strong></span></span>, <span class="methodparam"><span class="type">int</span> <code class="parameter">$flags</code><span class="initializer"> = 0</span></span>): <span class="type">array</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="reflectionclass.getconstant.html" class="methodname">getConstant</a></span>(<span class="methodparam"><span class="type">string</span> <code class="parameter">$name</code></span>): <span class="type"><a href="language.types.declarations.html#language.types.declarations.mixed" class="type mixed">mixed</a></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="reflectionclass.getconstants.html" class="methodname">getConstants</a></span>(<span class="methodparam"><span class="type">?</span><span class="type"><span class="type">int</span><span class="type"></span></span> <code class="parameter">$filter</code><span class="initializer"> = <strong><code>null</code></strong></span></span>): <span class="type">array</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="reflectionclass.getconstructor.html" class="methodname">getConstructor</a></span>(): <span class="type"><span class="type">?</span><span class="type"><a href="class.reflectionmethod.html" class="type ReflectionMethod">ReflectionMethod</a></span></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="reflectionclass.getdefaultproperties.html" class="methodname">getDefaultProperties</a></span>(): <span class="type">array</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="reflectionclass.getdoccomment.html" class="methodname">getDocComment</a></span>(): <span class="type"><span class="type">string</span>|<span class="type"><span class="type false">false</span></span></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="reflectionclass.getendline.html" class="methodname">getEndLine</a></span>(): <span class="type"><span class="type">int</span>|<span class="type"><span class="type false">false</span></span></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="reflectionclass.getextension.html" class="methodname">getExtension</a></span>(): <span class="type"><span class="type">?</span><span class="type"><a href="class.reflectionextension.html" class="type ReflectionExtension">ReflectionExtension</a></span></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="reflectionclass.getextensionname.html" class="methodname">getExtensionName</a></span>(): <span class="type"><span class="type">string</span>|<span class="type"><span class="type false">false</span></span></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="reflectionclass.getfilename.html" class="methodname">getFileName</a></span>(): <span class="type"><span class="type">string</span>|<span class="type"><span class="type false">false</span></span></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="reflectionclass.getinterfacenames.html" class="methodname">getInterfaceNames</a></span>(): <span class="type">array</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="reflectionclass.getinterfaces.html" class="methodname">getInterfaces</a></span>(): <span class="type">array</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="reflectionclass.getmethod.html" class="methodname">getMethod</a></span>(<span class="methodparam"><span class="type">string</span> <code class="parameter">$name</code></span>): <span class="type"><a href="class.reflectionmethod.html" class="type ReflectionMethod">ReflectionMethod</a></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="reflectionclass.getmethods.html" class="methodname">getMethods</a></span>(<span class="methodparam"><span class="type">?</span><span class="type"><span class="type">int</span><span class="type"></span></span> <code class="parameter">$filter</code><span class="initializer"> = <strong><code>null</code></strong></span></span>): <span class="type">array</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="reflectionclass.getmodifiers.html" class="methodname">getModifiers</a></span>(): <span class="type">int</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="reflectionclass.getname.html" class="methodname">getName</a></span>(): <span class="type">string</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="reflectionclass.getnamespacename.html" class="methodname">getNamespaceName</a></span>(): <span class="type">string</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="reflectionclass.getparentclass.html" class="methodname">getParentClass</a></span>(): <span class="type"><span class="type"><a href="class.reflectionclass.html" class="type ReflectionClass">ReflectionClass</a></span>|<span class="type"><span class="type false">false</span></span></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="reflectionclass.getproperties.html" class="methodname">getProperties</a></span>(<span class="methodparam"><span class="type">?</span><span class="type"><span class="type">int</span><span class="type"></span></span> <code class="parameter">$filter</code><span class="initializer"> = <strong><code>null</code></strong></span></span>): <span class="type">array</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="reflectionclass.getproperty.html" class="methodname">getProperty</a></span>(<span class="methodparam"><span class="type">string</span> <code class="parameter">$name</code></span>): <span class="type"><a href="class.reflectionproperty.html" class="type ReflectionProperty">ReflectionProperty</a></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="reflectionclass.getreflectionconstant.html" class="methodname">getReflectionConstant</a></span>(<span class="methodparam"><span class="type">string</span> <code class="parameter">$name</code></span>): <span class="type"><span class="type"><a href="class.reflectionclassconstant.html" class="type ReflectionClassConstant">ReflectionClassConstant</a></span>|<span class="type"><span class="type false">false</span></span></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="reflectionclass.getreflectionconstants.html" class="methodname">getReflectionConstants</a></span>(<span class="methodparam"><span class="type">?</span><span class="type"><span class="type">int</span><span class="type"></span></span> <code class="parameter">$filter</code><span class="initializer"> = <strong><code>null</code></strong></span></span>): <span class="type">array</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="reflectionclass.getshortname.html" class="methodname">getShortName</a></span>(): <span class="type">string</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="reflectionclass.getstartline.html" class="methodname">getStartLine</a></span>(): <span class="type"><span class="type">int</span>|<span class="type"><span class="type false">false</span></span></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="reflectionclass.getstaticproperties.html" class="methodname">getStaticProperties</a></span>(): <span class="type"><span class="type">?</span><span class="type">array</span></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="reflectionclass.getstaticpropertyvalue.html" class="methodname">getStaticPropertyValue</a></span>(<span class="methodparam"><span class="type">string</span> <code class="parameter">$name</code></span>, <span class="methodparam"><span class="type"><a href="language.types.declarations.html#language.types.declarations.mixed" class="type mixed">mixed</a></span> <code class="parameter reference">&$def_value</code><span class="initializer"> = ?</span></span>): <span class="type"><a href="language.types.declarations.html#language.types.declarations.mixed" class="type mixed">mixed</a></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="reflectionclass.gettraitaliases.html" class="methodname">getTraitAliases</a></span>(): <span class="type">array</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="reflectionclass.gettraitnames.html" class="methodname">getTraitNames</a></span>(): <span class="type">array</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="reflectionclass.gettraits.html" class="methodname">getTraits</a></span>(): <span class="type">array</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="reflectionclass.hasconstant.html" class="methodname">hasConstant</a></span>(<span class="methodparam"><span class="type">string</span> <code class="parameter">$name</code></span>): <span class="type">bool</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="reflectionclass.hasmethod.html" class="methodname">hasMethod</a></span>(<span class="methodparam"><span class="type">string</span> <code class="parameter">$name</code></span>): <span class="type">bool</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="reflectionclass.hasproperty.html" class="methodname">hasProperty</a></span>(<span class="methodparam"><span class="type">string</span> <code class="parameter">$name</code></span>): <span class="type">bool</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="reflectionclass.implementsinterface.html" class="methodname">implementsInterface</a></span>(<span class="methodparam"><span class="type"><span class="type"><a href="class.reflectionclass.html" class="type ReflectionClass">ReflectionClass</a></span>|<span class="type">string</span></span> <code class="parameter">$interface</code></span>): <span class="type">bool</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="reflectionclass.innamespace.html" class="methodname">inNamespace</a></span>(): <span class="type">bool</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="reflectionclass.isabstract.html" class="methodname">isAbstract</a></span>(): <span class="type">bool</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="reflectionclass.isanonymous.html" class="methodname">isAnonymous</a></span>(): <span class="type">bool</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="reflectionclass.iscloneable.html" class="methodname">isCloneable</a></span>(): <span class="type">bool</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="reflectionclass.isenum.html" class="methodname">isEnum</a></span>(): <span class="type">bool</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="reflectionclass.isfinal.html" class="methodname">isFinal</a></span>(): <span class="type">bool</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="reflectionclass.isinstance.html" class="methodname">isInstance</a></span>(<span class="methodparam"><span class="type">object</span> <code class="parameter">$object</code></span>): <span class="type">bool</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="reflectionclass.isinstantiable.html" class="methodname">isInstantiable</a></span>(): <span class="type">bool</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="reflectionclass.isinterface.html" class="methodname">isInterface</a></span>(): <span class="type">bool</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="reflectionclass.isinternal.html" class="methodname">isInternal</a></span>(): <span class="type">bool</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="reflectionclass.isiterable.html" class="methodname">isIterable</a></span>(): <span class="type">bool</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="reflectionclass.isreadonly.html" class="methodname">isReadOnly</a></span>(): <span class="type">bool</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="reflectionclass.issubclassof.html" class="methodname">isSubclassOf</a></span>(<span class="methodparam"><span class="type"><span class="type"><a href="class.reflectionclass.html" class="type ReflectionClass">ReflectionClass</a></span>|<span class="type">string</span></span> <code class="parameter">$class</code></span>): <span class="type">bool</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="reflectionclass.istrait.html" class="methodname">isTrait</a></span>(): <span class="type">bool</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="reflectionclass.isuserdefined.html" class="methodname">isUserDefined</a></span>(): <span class="type">bool</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="reflectionclass.newinstance.html" class="methodname">newInstance</a></span>(<span class="methodparam"><span class="type"><a href="language.types.declarations.html#language.types.declarations.mixed" class="type mixed">mixed</a></span> <code class="parameter">...$args</code></span>): <span class="type">object</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="reflectionclass.newinstanceargs.html" class="methodname">newInstanceArgs</a></span>(<span class="methodparam"><span class="type">array</span> <code class="parameter">$args</code><span class="initializer"> = []</span></span>): <span class="type"><span class="type">?</span><span class="type">object</span></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="reflectionclass.newinstancewithoutconstructor.html" class="methodname">newInstanceWithoutConstructor</a></span>(): <span class="type">object</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="reflectionclass.setstaticpropertyvalue.html" class="methodname">setStaticPropertyValue</a></span>(<span class="methodparam"><span class="type">string</span> <code class="parameter">$name</code></span>, <span class="methodparam"><span class="type"><a href="language.types.declarations.html#language.types.declarations.mixed" class="type mixed">mixed</a></span> <code class="parameter">$value</code></span>): <span class="type"><span class="type void">void</span></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="reflectionclass.tostring.html" class="methodname">__toString</a></span>(): <span class="type">string</span></div>

   }</div>


  </div>

  

  <div class="section" id="reflectionclass.props">
   <h2 class="title">属性</h2>
   <dl>
    
     <dt id="reflectionclass.props.name"><var class="varname">name</var></dt>

     <dd>

      <p class="para">
       类名。只读，尝试赋值时抛出 <span class="classname"><a href="class.reflectionexception.html" class="classname">ReflectionException</a></span>。
      </p>
     </dd>

    
   </dl>

  </div>


  

  <div class="section" id="reflectionclass.constants">
   <h2 class="title">预定义常量</h2>
   <div class="section" id="reflectionclass.constants.modifiers">
    <h2 class="title">ReflectionClass 修饰符</h2>
    <dl>

     
      <dt id="reflectionclass.constants.is-implicit-abstract"><strong><code>ReflectionClass::IS_IMPLICIT_ABSTRACT</code></strong></dt>

      <dd>

       <p class="para">
        表示该类是 <a href="language.oop5.abstract.html" class="link">abstract</a>，因为有一些抽象方法。
       </p>
      </dd>

     

     
      <dt id="reflectionclass.constants.is-explicit-abstract"><strong><code>ReflectionClass::IS_EXPLICIT_ABSTRACT</code></strong></dt>

      <dd>

       <p class="para">
        表示该类是 <a href="language.oop5.abstract.html" class="link">abstract</a>，因为已明确定义。
       </p>
      </dd>

     

     
      <dt id="reflectionclass.constants.is-final"><strong><code>ReflectionClass::IS_FINAL</code></strong></dt>

      <dd>

       <p class="para">
        表示该类是 <a href="language.oop5.final.html" class="link">final</a>。
       </p>
      </dd>

     

     
      <dt id="reflectionclass.constants.is-readonly"><strong><code>ReflectionClass::IS_READONLY</code></strong></dt>

      <dd>

       <p class="para">
        表示该类是 <a href="language.oop5.basic.html#language.oop5.basic.class.readonly" class="link">readonly</a>。
       </p>
      </dd>

     

    </dl>

   </div>
  </div>



 </div>

 


























































































































































































































































































































































































































































<h2>目录</h2><ul class="chunklist chunklist_reference"><li><a href="reflectionclass.construct.html">ReflectionClass::__construct</a> — 初始化 ReflectionClass 类</li><li><a href="reflectionclass.export.html">ReflectionClass::export</a> — 导出一个类</li><li><a href="reflectionclass.getattributes.html">ReflectionClass::getAttributes</a> — Gets Attributes</li><li><a href="reflectionclass.getconstant.html">ReflectionClass::getConstant</a> — 获取已定义的常量</li><li><a href="reflectionclass.getconstants.html">ReflectionClass::getConstants</a> — 获取常量</li><li><a href="reflectionclass.getconstructor.html">ReflectionClass::getConstructor</a> — 获取类的构造函数</li><li><a href="reflectionclass.getdefaultproperties.html">ReflectionClass::getDefaultProperties</a> — 获取默认属性</li><li><a href="reflectionclass.getdoccomment.html">ReflectionClass::getDocComment</a> — 获取文档注释</li><li><a href="reflectionclass.getendline.html">ReflectionClass::getEndLine</a> — 获取最后一行的行数</li><li><a href="reflectionclass.getextension.html">ReflectionClass::getExtension</a> — 根据已定义的类获取所在扩展的 ReflectionExtension 对象</li><li><a href="reflectionclass.getextensionname.html">ReflectionClass::getExtensionName</a> — 获取定义的类所在的扩展的名称</li><li><a href="reflectionclass.getfilename.html">ReflectionClass::getFileName</a> — 获取定义类的文件名</li><li><a href="reflectionclass.getinterfacenames.html">ReflectionClass::getInterfaceNames</a> — 获取接口（interface）名称</li><li><a href="reflectionclass.getinterfaces.html">ReflectionClass::getInterfaces</a> — 获取接口</li><li><a href="reflectionclass.getmethod.html">ReflectionClass::getMethod</a> — 获取类方法的 ReflectionMethod</li><li><a href="reflectionclass.getmethods.html">ReflectionClass::getMethods</a> — 获取方法的数组</li><li><a href="reflectionclass.getmodifiers.html">ReflectionClass::getModifiers</a> — 获取类的修饰符</li><li><a href="reflectionclass.getname.html">ReflectionClass::getName</a> — 获取类名</li><li><a href="reflectionclass.getnamespacename.html">ReflectionClass::getNamespaceName</a> — 获取命名空间的名称</li><li><a href="reflectionclass.getparentclass.html">ReflectionClass::getParentClass</a> — 获取父类</li><li><a href="reflectionclass.getproperties.html">ReflectionClass::getProperties</a> — 获取属性</li><li><a href="reflectionclass.getproperty.html">ReflectionClass::getProperty</a> — 获取类的一个属性的 ReflectionProperty</li><li><a href="reflectionclass.getreflectionconstant.html">ReflectionClass::getReflectionConstant</a> — Gets a ReflectionClassConstant for a class's constant</li><li><a href="reflectionclass.getreflectionconstants.html">ReflectionClass::getReflectionConstants</a> — Gets class constants</li><li><a href="reflectionclass.getshortname.html">ReflectionClass::getShortName</a> — 获取短名</li><li><a href="reflectionclass.getstartline.html">ReflectionClass::getStartLine</a> — 获取起始行号</li><li><a href="reflectionclass.getstaticproperties.html">ReflectionClass::getStaticProperties</a> — 获取静态（static）属性</li><li><a href="reflectionclass.getstaticpropertyvalue.html">ReflectionClass::getStaticPropertyValue</a> — 获取静态（static）属性的值</li><li><a href="reflectionclass.gettraitaliases.html">ReflectionClass::getTraitAliases</a> — 返回 trait 别名数组</li><li><a href="reflectionclass.gettraitnames.html">ReflectionClass::getTraitNames</a> — 返回这个类所使用 traits 的名称的数组</li><li><a href="reflectionclass.gettraits.html">ReflectionClass::getTraits</a> — 返回这个类所使用的 traits 数组</li><li><a href="reflectionclass.hasconstant.html">ReflectionClass::hasConstant</a> — 检查常量是否已经定义</li><li><a href="reflectionclass.hasmethod.html">ReflectionClass::hasMethod</a> — 检查方法是否已定义</li><li><a href="reflectionclass.hasproperty.html">ReflectionClass::hasProperty</a> — 检查属性是否已定义</li><li><a href="reflectionclass.implementsinterface.html">ReflectionClass::implementsInterface</a> — 实现接口</li><li><a href="reflectionclass.innamespace.html">ReflectionClass::inNamespace</a> — 检查是否位于命名空间中</li><li><a href="reflectionclass.isabstract.html">ReflectionClass::isAbstract</a> — 检查类是否是抽象类（abstract）</li><li><a href="reflectionclass.isanonymous.html">ReflectionClass::isAnonymous</a> — 检查类是否是匿名类</li><li><a href="reflectionclass.iscloneable.html">ReflectionClass::isCloneable</a> — 返回了一个类是否可复制</li><li><a href="reflectionclass.isenum.html">ReflectionClass::isEnum</a> — Returns whether this is an enum</li><li><a href="reflectionclass.isfinal.html">ReflectionClass::isFinal</a> — 检查类是否声明为 final</li><li><a href="reflectionclass.isinstance.html">ReflectionClass::isInstance</a> — 检查类的实例</li><li><a href="reflectionclass.isinstantiable.html">ReflectionClass::isInstantiable</a> — 检查类是否可实例化</li><li><a href="reflectionclass.isinterface.html">ReflectionClass::isInterface</a> — 检查类是否是一个接口（interface）</li><li><a href="reflectionclass.isinternal.html">ReflectionClass::isInternal</a> — 检查类是否由扩展或核心在内部定义</li><li><a href="reflectionclass.isiterable.html">ReflectionClass::isIterable</a> — Check whether this class is iterable</li><li><a href="reflectionclass.isiterateable.html">ReflectionClass::isIterateable</a> — 别名 ReflectionClass::isIterable</li><li><a href="reflectionclass.isreadonly.html">ReflectionClass::isReadOnly</a> — Checks if class is readonly</li><li><a href="reflectionclass.issubclassof.html">ReflectionClass::isSubclassOf</a> — 检查是否为子类</li><li><a href="reflectionclass.istrait.html">ReflectionClass::isTrait</a> — 返回了是否是 trait</li><li><a href="reflectionclass.isuserdefined.html">ReflectionClass::isUserDefined</a> — 检查是否由用户定义的</li><li><a href="reflectionclass.newinstance.html">ReflectionClass::newInstance</a> — 从指定的参数创建新类实例</li><li><a href="reflectionclass.newinstanceargs.html">ReflectionClass::newInstanceArgs</a> — 从给出的参数创建一个新的类实例</li><li><a href="reflectionclass.newinstancewithoutconstructor.html">ReflectionClass::newInstanceWithoutConstructor</a> — 创建新的类实例而不调用它的构造函数</li><li><a href="reflectionclass.setstaticpropertyvalue.html">ReflectionClass::setStaticPropertyValue</a> — 设置静态属性的值</li><li><a href="reflectionclass.tostring.html">ReflectionClass::__toString</a> — 返回 ReflectionClass 对象字符串的表示形式</li></ul>
</div>
</div></div></body></html>